/*
 * Copyright (c) 2002-2012 Alibaba Group Holding Limited.
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hd.assistant.web.home.module.screen.sxj;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.hd.assistant.dal.dataobject.User;

/**
*
* @author Hangding
*/
public class Log extends BasePaipaiSxjModule {
    private final static Logger log = LoggerFactory.getLogger(Log.class);

    @Autowired
    private HttpSession session;
    
    
    public void execute(
    		@Param("appType") String appType, 
    		@Param("pindex") String pindex,
    		@Param("index") String index,
    			Context context,Navigator nav) {
    	try{
    		context.put("pindex", pindex==null?3:pindex);
        	context.put("index", index==null?300:index);
          	User user = checkPermision(session,context,nav);
          	context.put("user", user);
        	
    	}catch(Exception e){
    		log.error("error:",e);
    	}
        	

    }


    
   
}
